﻿using Ochkin.SquaredSoccer.Base;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Ochkin.SquaredSoccer.UnitTest
{
    
    
    /// <summary>
    ///This is a test class for PlayerTest and is intended
    ///to contain all PlayerTest Unit Tests
    ///</summary>
    [TestClass]
    public sealed class PlayerTest
    {
        /// <summary>
        ///A test for Invert
        ///</summary>
        [TestMethod]
        public void InvertTest()
        {
            Assert.AreEqual<Player>(Player.Computer, Player.Human.Invert);
            Assert.AreEqual<Player>(Player.Human, Player.Computer.Invert);
            Assert.AreEqual<Player>(Player.Human, Player.Human.Invert.Invert);
            Assert.AreEqual<Player>(Player.Computer, Player.Computer.Invert.Invert);
        }
    }
}
